<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" template="layout/template.xhtml">

	<ui:define name="body">

		<h:form>
			<p:panel header="会议室一览">
				<p:dataTable value="#{meetingRooms}" var="meetingRoom"
					style="width: 400px;">
					<p:column headerText="ID" style="width: 50px;">
						<h:outputText value="#{meetingRoom.mrId}" />
					</p:column>
					<p:column headerText="会议室名称" style="width: 150px;">
						<h:commandLink value="#{meetingRoom.mrName}"
							action="#{meetingRoomListAction.showDetail}" />
					</p:column>
					<p:column headerText="会议室类型" style="width: 60px;">
						<h:outputText value="#{meetingRoom.mrType}" />
					</p:column>
					<p:column headerText="操作" style="width: 40px;text-align:center">
						<h:commandLink value="Edit" action="#{meetingRoomListAction.edit}" />
					</p:column>
				</p:dataTable>

			</p:panel>

			<s:div styleClass="actionButtons">
				<h:commandButton value="追加" action="create" />
				<h:commandButton value="预约检索" action="bookingSearch" />
			</s:div>


		</h:form>
	</ui:define>

</ui:composition>
